-
Notifications
You must be signed in to change notification settings - Fork 76
Fix issue that caused database rename to and from saved
to fail
#222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
`llvm::sys::fs::rename` cannot rename directories becasue it creates a file handle for the file to rename, which doesn't work for directories. Implement a custom rename function that uses `MoveFileW` on Windows.
@swift-ci Please test |
The underlying issue should be fixed by swiftlang/indexstore-db#222.
The underlying issue should be fixed by swiftlang/indexstore-db#222. Fixes swiftlang#1750 rdar://137886502
The underlying issue should be fixed by swiftlang/indexstore-db#222. Fixes swiftlang#1750 rdar://137886502
@swift-ci Please test Windows |
The underlying issue should be fixed by swiftlang/indexstore-db#222. Fixes swiftlang#1750 rdar://137886502
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty weird but... 🤷
For the record,
So, looks like |
llvm::sys::fs::rename
cannot rename directories becasue it creates a file handle for the file to rename, which doesn't work for directories. Implement a custom rename function that usesMoveFileW
on Windows.Fixes swiftlang/sourcekit-lsp#1750